<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 管理员管理 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/admin/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<style type="text/css">
        #pull_right{
            text-align:center;
        }
        .pagination {
            display: inline-block;
            padding-left: 0;
            margin: 20px 0;
            border-radius: 4px;
        }
        .pagination > li {
            display: inline;
        }
        .pagination > li > a,
        .pagination > li > span {
            position: relative;
            float: left;
            padding: 6px 12px;
            margin-left: -1px;
            line-height: 1.42857143;
            color: #428bca;
            text-decoration: none;
            background-color: #fff;
            border: 1px solid #ddd;
        }

        .pagination > .active > a,
        .pagination > .active > span,
        .pagination > .active > a:hover,
        .pagination > .active > span:hover,
        .pagination > .active > a:focus,
        .pagination > .active > span:focus {
            z-index: 2;
            color: #fff;
            cursor: default;
            background-color: #428bca;
            border-color: #428bca;
        }

</style>

<body>

<h1>
<span class="action-span"><a href="admin_add">添加管理员</a></span>
<span class="action-span1">SHOP 管理中心 </span><span id="search_id" class="action-span1"> - 管理员列表 </span>
<div style="clear:both"></div>
</h1>

<div class="form-div">

</div>

<form method="post" action="" name="listForm">
<!-- start brand list -->
<div class="list-div" id="listDiv">

  <table cellpadding="3" cellspacing="1">
    <tbody>
        <tr>
            <th>管理员id</th>
            <th>管理员名称</th>
            <th>上次登录时间</th>
            <th>邮箱</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        @foreach ($info as $v)
        
      <tr>
            <td class="first-cell" align="center">{{$v->admin_id}}</td>
            <td align="center" >{{$v->admin_name}}</td>
            <td align="center" >
            @if ($v->last_login_time == '')
                没登陆过
            @else
            <?php echo date('Y-m-d H:i:s',$v->last_login_time); ?>
            @endif
            </td>
            <td align="center"><span onclick="javascript:listTable.edit(this, 'edit_sort_order', 1)">{{$v->email}}</span></td>
            <td align="center">
            @if ($v->status == 1)
                <img src="/admin/images/yes.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
            @else
                <img src="/admin/images/no.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
	
            @endif
            </td>
            <td align="center">
                <a href="set_node/{{$v->admin_id}}" title="分配权限">分配权限</a> |
                <a href="admin_del/{{$v->admin_id}}" title="禁用">禁用</a> |
                <a href="admin_back/{{$v->admin_id}}" title="还原">还原状态</a>
            </td>
        </tr>
        @endforeach
  </tbody></table>
  <div id="pull_right">
        <div class="pull-right">
            {!!$info->render()!!}
        </div>
     </div>
<!-- end brand list -->
</div>
</form>

</body>
</html>